package com.xin.controller;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author WYX
 * @create 2020-04-02-9:13
 */
public class ControllerDemo01 implements Controller {
    @Override
    public ModelAndView handleRequest(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws Exception {

        ModelAndView modelAndView=new ModelAndView();
        modelAndView.addObject("msg","演示controller");
        modelAndView.setViewName("test");

        return modelAndView;
    }
}
